package com.mca.framework.functinalInterface;

import java.util.function.Function;

public class MyFunctionDemo2 {

    public static Integer convert(String
                                          value, Function<String,Integer> function){
        return function.apply(value);
    }
    public static void main(String[] args) {
        String value = "黑马程序员,666";
        Integer result=convert(value,(s -> Integer.parseInt(s) + 222));
        System.out.println(result);
    }
}
